package com.dongdongshop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping("/")
    public String toIndex(){
        return "index";
    }

    @RequestMapping("toRegister")
    public String toRegister(){
        return "register";
    }

    @RequestMapping("toLogin")
    public String toLogin(){
        return "login";
    }

    @RequestMapping("toCart")
    public String toCart(){
        return "cart";
    }

    @RequestMapping("toGetOrderInfo")
    public String toGetOrderInfo(){
        return "getOrderInfo";
    }

    @RequestMapping("toSettingAddress")
    public String toSettingAddress(){
        return "home-setting-address";
    }

    @RequestMapping("toPay")
    public String toPay(){
        return "pay";
    }

    @RequestMapping("homeindex")
    public String homeindex(){
        return "home-index";
    }

    @RequestMapping("homeorderpay")
    public String homeorderpay(){
        return "home-order-pay";
    }
}

